package com.sy.service;

import com.github.pagehelper.Page;
import com.sy.dto.HomeworkMagTable;
import com.sy.dto.HomeworkView;
import com.sy.entity.Answer;
import com.sy.vo.HomeworkVo;

import java.util.List;

public interface HomeworkService {
    /**
     * 添加作业
     */
    void addHomework(HomeworkVo homeworkVo,Integer teacherId);
    /**
     * 根据老师的id获得作业管理列表（分页）
     */
    Page<HomeworkMagTable> getHomeworkListByTeacherId(Integer teacherId,Integer page,Integer limit,String keyWords);

    /**
     * 完成作业删除及关联数据的删除
     */
    boolean deleteHomework(Integer homeworkId);
    /**
     * 老师查看布置的作业内容
     */
    HomeworkView viewHomework(Integer homeworkId);
    /**
     * 根据作业id获得答案
     */
    List<Answer> getAnswer(Integer homeworkId);
}
